package org.jeecg.modules.mpj.icu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import icu.mhb.mybatisplus.plugln.base.mapper.JoinBaseMapper;
import icu.mhb.mybatisplus.plugln.base.service.impl.JoinServiceImpl;
import icu.mhb.mybatisplus.plugln.core.JoinLambdaWrapper;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.mpj.icu.service.NcmeJoinIService;

import javax.servlet.http.HttpServletRequest;

public class NcmeJoinServiceImpl<M extends JoinBaseMapper<T>, T> extends JoinServiceImpl<M, T> implements NcmeJoinIService<T> {
    @Override
    public JoinLambdaWrapper<T> createJeecgJoinListWrapper(T entity, HttpServletRequest req) {
        QueryWrapper<T> queryWrapper = QueryGenerator.initQueryWrapper(entity, req.getParameterMap());
        return this.joinLambdaQueryWrapper().changeQueryWrapper(queryWrapper);
    }

    @Override
    public JoinLambdaWrapper<T> joinLambdaQueryWrapper() {
        return super.joinLambdaQueryWrapper();
    }
}
